home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
WebObjects
/
SourceCode
/
Create-A-Card
/
Application.wos
next >
Wrap
Text File
|
1996-01-25
|
961b
|
30 lines
/*
* Application.wos
* You may freely copy, distribute, and reuse the code in this example.
* NeXT disclaims any warranty of any kind, expressed or implied, as to its
* fitness for any particular use.
*
* Written by Katie McCormick
*
* This application lets you create a custom birthday card. When you enter
* the name and age of a recipient and click submit, the application
* returns a page with a birthday greeting. The application maintains a
* global variable namesArray that contains the names of all card
* recipients. When you click the Show all recipients button, the
* application returns a page listing all of the recipients across all
* sessions.
*
*/
id namesArray;
// global variable containing the name of all of the card recipients
- awake {
// Obsolete sessions that have been inactive for more than 2 minutes
[WOApp setSessionTimeOut:120];
namesArray = [NSMutableArray array];
}